
// Copyright (c) 2002 HTHK
package admin.menu;

/**
 * A Class class.
 * <P>
 * @author HTHK
 */
public class Item
{
  private boolean isRoot;
  private String id;
  private String name;
  private String url;
  private int sequence;
  private String parentId;
  /**
   * Constructor
   */
  public Item()
  {
      this(new String(),new String(),new String(),0,new String());
  }

  public Item(String id,String name, String url, int sequence, String parentId)
  {
      this.setId(id);
      this.setName(name);
      this.setUrl(url);
      this.setSequence(sequence);
      this.setParentId(parentId);
      this.setRoot(true);
  }

  public void setId(String id)
  {
      this.id=id;
  }

  public String getId()
  {
      return this.id;
  }

  public void setName(String name)
  {
      this.name=name;
  }

  public String getName()
  {
      return this.name;
  }

  public void setUrl(String url)
  {
      this.url=url;
  }

  public String getUrl()
  {
      return this.url;
  }

  public void setSequence(int sequence)
  {
      this.sequence=sequence;
  }

  public int getSequence()
  {
      return this.sequence;
  }

  public void setParentId(String parentId)
  {
      this.parentId=parentId;
  }

  public String getParentId()
  {
      return this.parentId;
  }

  public boolean isRoot()
  {
      return this.isRoot;
  }

  public void setRoot(boolean isRoot)
  {
      this.isRoot = isRoot;
  }
}

 